IndexOf Method (SparseArray<T>)
Determines the index of a specific item in the SparseArray.
'Declaration
Public Function IndexOf( _
ByVal As _
) As Integer
'Usage
Dim instance As SparseArray(Of T)
Dim item As
Dim value As Integer
value = instance.IndexOf(item)
Parameters
- item
- The object to locate in the SparseArray.
Return Value
The index of item if found in the list; otherwise, -1.